<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Ajax中get方法简便写法</title>
</head>

<body>
    <button id="btn">点击提交</button>
    <div id="box"></div>
    <script src="./lib/jquery.js"></script>
    <script type="text/javascript">
        $("#btn").click(function () {
            $.post('http://www.liulongbin.top:3006/api/addbook', {bookname: '金瓶梅',author: 'cc',publisher: 'yellow出版社'}, function (res) {
                $("#box").html(res)
            })
        })
    </script>
</body>
